package com.kgc.travel.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LawRuleExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LawRuleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRuleIdIsNull() {
            addCriterion("rule_id is null");
            return (Criteria) this;
        }

        public Criteria andRuleIdIsNotNull() {
            addCriterion("rule_id is not null");
            return (Criteria) this;
        }

        public Criteria andRuleIdEqualTo(Integer value) {
            addCriterion("rule_id =", value, "ruleId");
            return (Criteria) this;
        }

        public Criteria andRuleIdNotEqualTo(Integer value) {
            addCriterion("rule_id <>", value, "ruleId");
            return (Criteria) this;
        }

        public Criteria andRuleIdGreaterThan(Integer value) {
            addCriterion("rule_id >", value, "ruleId");
            return (Criteria) this;
        }

        public Criteria andRuleIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("rule_id >=", value, "ruleId");
            return (Criteria) this;
        }

        public Criteria andRuleIdLessThan(Integer value) {
            addCriterion("rule_id <", value, "ruleId");
            return (Criteria) this;
        }

        public Criteria andRuleIdLessThanOrEqualTo(Integer value) {
            addCriterion("rule_id <=", value, "ruleId");
            return (Criteria) this;
        }

        public Criteria andRuleIdIn(List<Integer> values) {
            addCriterion("rule_id in", values, "ruleId");
            return (Criteria) this;
        }

        public Criteria andRuleIdNotIn(List<Integer> values) {
            addCriterion("rule_id not in", values, "ruleId");
            return (Criteria) this;
        }

        public Criteria andRuleIdBetween(Integer value1, Integer value2) {
            addCriterion("rule_id between", value1, value2, "ruleId");
            return (Criteria) this;
        }

        public Criteria andRuleIdNotBetween(Integer value1, Integer value2) {
            addCriterion("rule_id not between", value1, value2, "ruleId");
            return (Criteria) this;
        }

        public Criteria andLawIdIsNull() {
            addCriterion("law_id is null");
            return (Criteria) this;
        }

        public Criteria andLawIdIsNotNull() {
            addCriterion("law_id is not null");
            return (Criteria) this;
        }

        public Criteria andLawIdEqualTo(Integer value) {
            addCriterion("law_id =", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdNotEqualTo(Integer value) {
            addCriterion("law_id <>", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdGreaterThan(Integer value) {
            addCriterion("law_id >", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("law_id >=", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdLessThan(Integer value) {
            addCriterion("law_id <", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdLessThanOrEqualTo(Integer value) {
            addCriterion("law_id <=", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdIn(List<Integer> values) {
            addCriterion("law_id in", values, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdNotIn(List<Integer> values) {
            addCriterion("law_id not in", values, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdBetween(Integer value1, Integer value2) {
            addCriterion("law_id between", value1, value2, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdNotBetween(Integer value1, Integer value2) {
            addCriterion("law_id not between", value1, value2, "lawId");
            return (Criteria) this;
        }

        public Criteria andPageIdIsNull() {
            addCriterion("page_id is null");
            return (Criteria) this;
        }

        public Criteria andPageIdIsNotNull() {
            addCriterion("page_id is not null");
            return (Criteria) this;
        }

        public Criteria andPageIdEqualTo(Integer value) {
            addCriterion("page_id =", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdNotEqualTo(Integer value) {
            addCriterion("page_id <>", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdGreaterThan(Integer value) {
            addCriterion("page_id >", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("page_id >=", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdLessThan(Integer value) {
            addCriterion("page_id <", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdLessThanOrEqualTo(Integer value) {
            addCriterion("page_id <=", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdIn(List<Integer> values) {
            addCriterion("page_id in", values, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdNotIn(List<Integer> values) {
            addCriterion("page_id not in", values, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdBetween(Integer value1, Integer value2) {
            addCriterion("page_id between", value1, value2, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdNotBetween(Integer value1, Integer value2) {
            addCriterion("page_id not between", value1, value2, "pageId");
            return (Criteria) this;
        }

        public Criteria andRuleTitleIsNull() {
            addCriterion("rule_title is null");
            return (Criteria) this;
        }

        public Criteria andRuleTitleIsNotNull() {
            addCriterion("rule_title is not null");
            return (Criteria) this;
        }

        public Criteria andRuleTitleEqualTo(String value) {
            addCriterion("rule_title =", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleNotEqualTo(String value) {
            addCriterion("rule_title <>", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleGreaterThan(String value) {
            addCriterion("rule_title >", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleGreaterThanOrEqualTo(String value) {
            addCriterion("rule_title >=", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleLessThan(String value) {
            addCriterion("rule_title <", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleLessThanOrEqualTo(String value) {
            addCriterion("rule_title <=", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleLike(String value) {
            addCriterion("rule_title like", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleNotLike(String value) {
            addCriterion("rule_title not like", value, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleIn(List<String> values) {
            addCriterion("rule_title in", values, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleNotIn(List<String> values) {
            addCriterion("rule_title not in", values, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleBetween(String value1, String value2) {
            addCriterion("rule_title between", value1, value2, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleTitleNotBetween(String value1, String value2) {
            addCriterion("rule_title not between", value1, value2, "ruleTitle");
            return (Criteria) this;
        }

        public Criteria andRuleContentIsNull() {
            addCriterion("rule_content is null");
            return (Criteria) this;
        }

        public Criteria andRuleContentIsNotNull() {
            addCriterion("rule_content is not null");
            return (Criteria) this;
        }

        public Criteria andRuleContentEqualTo(String value) {
            addCriterion("rule_content =", value, "ruleContent");
            return (Criteria) this;
        }

        public Criteria andRuleContentNotEqualTo(String value) {
            addCriterion("rule_content <>", value, "ruleContent");
            return (Criteria) this;
        }

        public Criteria andRuleContentGreaterThan(String value) {
            addCriterion("rule_content >", value, "ruleContent");
            return (Criteria) this;
        }

        public Criteria andRuleContentGreaterThanOrEqualTo(String value) {
            addCriterion("rule_content >=", value, "ruleContent");
            return (Criteria) this;
        }

        public Criteria andRuleContentLessThan(String value) {
            addCriterion("rule_content <", value, "ruleContent");
            return (Criteria) this;
        }

        public Criteria andRuleContentLessThanOrEqualTo(String value) {
            addCriterion("rule_content <=", value, "ruleContent");
            return (Criteria) this;
        }

        public Criteria andRuleContentLike(String value) {
            addCriterion("rule_content like", value, "ruleContent");
            return (Criteria) this;
        }

        public Criteria andRuleContentNotLike(String value) {
            addCriterion("rule_content not like", value, "ruleContent");
            return (Criteria) this;
        }

        public Criteria andRuleContentIn(List<String> values) {
            addCriterion("rule_content in", values, "ruleContent");
            return (Criteria) this;
        }

        public Criteria andRuleContentNotIn(List<String> values) {
            addCriterion("rule_content not in", values, "ruleContent");
            return (Criteria) this;
        }

        public Criteria andRuleContentBetween(String value1, String value2) {
            addCriterion("rule_content between", value1, value2, "ruleContent");
            return (Criteria) this;
        }

        public Criteria andRuleContentNotBetween(String value1, String value2) {
            addCriterion("rule_content not between", value1, value2, "ruleContent");
            return (Criteria) this;
        }

        public Criteria andRuleGmtCreateIsNull() {
            addCriterion("rule_gmt_create is null");
            return (Criteria) this;
        }

        public Criteria andRuleGmtCreateIsNotNull() {
            addCriterion("rule_gmt_create is not null");
            return (Criteria) this;
        }

        public Criteria andRuleGmtCreateEqualTo(Date value) {
            addCriterion("rule_gmt_create =", value, "ruleGmtCreate");
            return (Criteria) this;
        }

        public Criteria andRuleGmtCreateNotEqualTo(Date value) {
            addCriterion("rule_gmt_create <>", value, "ruleGmtCreate");
            return (Criteria) this;
        }

        public Criteria andRuleGmtCreateGreaterThan(Date value) {
            addCriterion("rule_gmt_create >", value, "ruleGmtCreate");
            return (Criteria) this;
        }

        public Criteria andRuleGmtCreateGreaterThanOrEqualTo(Date value) {
            addCriterion("rule_gmt_create >=", value, "ruleGmtCreate");
            return (Criteria) this;
        }

        public Criteria andRuleGmtCreateLessThan(Date value) {
            addCriterion("rule_gmt_create <", value, "ruleGmtCreate");
            return (Criteria) this;
        }

        public Criteria andRuleGmtCreateLessThanOrEqualTo(Date value) {
            addCriterion("rule_gmt_create <=", value, "ruleGmtCreate");
            return (Criteria) this;
        }

        public Criteria andRuleGmtCreateIn(List<Date> values) {
            addCriterion("rule_gmt_create in", values, "ruleGmtCreate");
            return (Criteria) this;
        }

        public Criteria andRuleGmtCreateNotIn(List<Date> values) {
            addCriterion("rule_gmt_create not in", values, "ruleGmtCreate");
            return (Criteria) this;
        }

        public Criteria andRuleGmtCreateBetween(Date value1, Date value2) {
            addCriterion("rule_gmt_create between", value1, value2, "ruleGmtCreate");
            return (Criteria) this;
        }

        public Criteria andRuleGmtCreateNotBetween(Date value1, Date value2) {
            addCriterion("rule_gmt_create not between", value1, value2, "ruleGmtCreate");
            return (Criteria) this;
        }

        public Criteria andRuleGmtModifiedIsNull() {
            addCriterion("rule_gmt_modified is null");
            return (Criteria) this;
        }

        public Criteria andRuleGmtModifiedIsNotNull() {
            addCriterion("rule_gmt_modified is not null");
            return (Criteria) this;
        }

        public Criteria andRuleGmtModifiedEqualTo(Date value) {
            addCriterion("rule_gmt_modified =", value, "ruleGmtModified");
            return (Criteria) this;
        }

        public Criteria andRuleGmtModifiedNotEqualTo(Date value) {
            addCriterion("rule_gmt_modified <>", value, "ruleGmtModified");
            return (Criteria) this;
        }

        public Criteria andRuleGmtModifiedGreaterThan(Date value) {
            addCriterion("rule_gmt_modified >", value, "ruleGmtModified");
            return (Criteria) this;
        }

        public Criteria andRuleGmtModifiedGreaterThanOrEqualTo(Date value) {
            addCriterion("rule_gmt_modified >=", value, "ruleGmtModified");
            return (Criteria) this;
        }

        public Criteria andRuleGmtModifiedLessThan(Date value) {
            addCriterion("rule_gmt_modified <", value, "ruleGmtModified");
            return (Criteria) this;
        }

        public Criteria andRuleGmtModifiedLessThanOrEqualTo(Date value) {
            addCriterion("rule_gmt_modified <=", value, "ruleGmtModified");
            return (Criteria) this;
        }

        public Criteria andRuleGmtModifiedIn(List<Date> values) {
            addCriterion("rule_gmt_modified in", values, "ruleGmtModified");
            return (Criteria) this;
        }

        public Criteria andRuleGmtModifiedNotIn(List<Date> values) {
            addCriterion("rule_gmt_modified not in", values, "ruleGmtModified");
            return (Criteria) this;
        }

        public Criteria andRuleGmtModifiedBetween(Date value1, Date value2) {
            addCriterion("rule_gmt_modified between", value1, value2, "ruleGmtModified");
            return (Criteria) this;
        }

        public Criteria andRuleGmtModifiedNotBetween(Date value1, Date value2) {
            addCriterion("rule_gmt_modified not between", value1, value2, "ruleGmtModified");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}